package com.ruoyi.teaching.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级上课记录对象 teaching_classes_record
 * 
 * @author ruoyi
 * @date 2022-10-25
 */
public class TeachingClassesRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级记录ID */
    private Long claRecordId;

    /** 学校ID */
    @Excel(name = "学校ID")
    private Long schoolId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long courseId;

    /** 教师ID */
    @Excel(name = "教师ID")
    private Long teacherId;

    /** 班级ID */
    @Excel(name = "班级ID")
    private Long classId;

    /** 上课日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上课日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 开始时段 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时段", width = 30, dateFormat = "yyyy-MM-dd")
    private String startTime;

    /** 结束时段 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时段", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTime;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 老师名称 */
    @Excel(name = "老师名称")
    private String teacherName;

    /** 实到人数 */
    @Excel(name = "实到人数")
    private Long attendance;

    /** 应到人数 */
    @Excel(name = "应到人数")
    private Long peopleCount;

    /** 请假人数 */
    @Excel(name = "请假人数")
    private Long leaveCount;

    /** 旷课人数 */
    @Excel(name = "旷课人数")
    private Long truantCount;

    /** 学生消耗课时 */
    @Excel(name = "学生消耗课时")
    private Long studentHour;

    /** 老师获得课时 */
    @Excel(name = "老师获得课时")
    private Long teacherHour;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private Long createId;

    /** 课程对象 */
    private TeachingCourse teachingCourse;

    public TeachingCourse getTeachingCourse() {
        return teachingCourse;
    }

    public void setTeachingCourse(TeachingCourse teachingCourse) {
        this.teachingCourse = teachingCourse;
    }

    public void setClaRecordId(Long claRecordId)
    {
        this.claRecordId = claRecordId;
    }

    public Long getClaRecordId() 
    {
        return claRecordId;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }

    public void setTeacherName(String teacherName) 
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName() 
    {
        return teacherName;
    }
    public void setAttendance(Long attendance) 
    {
        this.attendance = attendance;
    }

    public Long getAttendance() 
    {
        return attendance;
    }
    public void setPeopleCount(Long peopleCount) 
    {
        this.peopleCount = peopleCount;
    }

    public Long getPeopleCount() 
    {
        return peopleCount;
    }
    public void setLeaveCount(Long leaveCount) 
    {
        this.leaveCount = leaveCount;
    }

    public Long getLeaveCount() 
    {
        return leaveCount;
    }
    public void setTruantCount(Long truantCount) 
    {
        this.truantCount = truantCount;
    }

    public Long getTruantCount() 
    {
        return truantCount;
    }
    public void setStudentHour(Long studentHour) 
    {
        this.studentHour = studentHour;
    }

    public Long getStudentHour() 
    {
        return studentHour;
    }
    public void setTeacherHour(Long teacherHour) 
    {
        this.teacherHour = teacherHour;
    }

    public Long getTeacherHour() 
    {
        return teacherHour;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("claRecordId", getClaRecordId())
            .append("schoolId", getSchoolId())
            .append("courseId", getCourseId())
            .append("teacherId", getTeacherId())
            .append("classId", getClassId())
            .append("startDate", getStartDate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("className", getClassName())
            .append("teacherName", getTeacherName())
            .append("attendance", getAttendance())
            .append("peopleCount", getPeopleCount())
            .append("leaveCount", getLeaveCount())
            .append("truantCount", getTruantCount())
            .append("studentHour", getStudentHour())
            .append("teacherHour", getTeacherHour())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createId", getCreateId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("teachingCourse", getTeachingCourse())
            .toString();
    }
}
